package edu.usc.libtalk.utils;

public class Globals {
	private static Globals instance = null;
	private String msgBoardText = "";
	// Singleton class
	private Globals(){
		// defeat instantiation
	}
	
	public static Globals getInstance() {
		 if(instance == null) {
	         instance = new Globals();
	      }
	      return instance;	
	}
	
	public void setMsgBoardText(String t) {
		msgBoardText = new String(t);
	}
	
	public String getMsgBoardText() {
		return msgBoardText;
	}
}
